import 'package:black_movice/config/configs.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class MovieReview extends StatefulWidget {
  final int moviceId;
  const MovieReview({super.key, required this.moviceId});

  @override
  State<MovieReview> createState() => _MovieReviewState();
}

class _MovieReviewState extends State<MovieReview> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 0, vertical: 10.h),
      child: Column(
        children: [
          // 功能栏
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text("观看帮助"),
              // Row(
              //   children: [
              //     TextButton(onPressed: () {}, child: Text("最热")),
              //     TextButton(onPressed: () {}, child: Text("最新")),
              //   ],
              // )
            ],
          ),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 0, vertical: 10.sp),
            // child: Markdown(data: "这是一段包含 [链接](https://www.example.com) 的文字。")
            child: Text(
              "如遇到任何APP使用异常，如报毒、频繁验证、无法播放、剧集错乱等，请先尝试重启、如还无法解决，请访问https:// www.baodu.com/下载最新版本。如浏览器禁止访问，请更换其他浏览器试试。删除重新安装可解决大部分问题",
              style: TextStyle(fontSize: Configs.titleSize_14),
              maxLines: 5, // 设置最大行数为 5
              overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
            ),
          ),
        ],
      ),
    );
  }
}
